#include "transaction_info.h"
#include "ui_transaction_info.h"

transaction_info::transaction_info(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::transaction_info)
{
    ui->setupUi(this);
}

void transaction_info::initTransactionInfo(const QString &id, const QString &type, const QString &amount, const QString &time)
{
    ui->cust_card_id->setText(id);
    ui->transaction_type->setText(type);
    ui->transaction_amount->setText(amount);
    ui->transaction_time->setText(time);
}


transaction_info::~transaction_info()
{
    delete ui;
}
